package com.itheima.orm.utils;

import java.util.Arrays;
import java.util.List;
import java.util.ResourceBundle;

public class PropertiesConstans {
	public static String jdbcDriverClassName = null;
	public static String jdbcUrl = null;
	public static String jdbcUser = null;
	public static String jdbcPassword = null;
	public static Boolean createTable = false;
	public static List<String> classNames = null;
	static{
		ResourceBundle resourceBundle = ResourceBundle.getBundle("ccorm");
		jdbcDriverClassName = resourceBundle.getString("jdbc.driver");
		jdbcUrl = resourceBundle.getString("jdbc.url");
		jdbcUser = resourceBundle.getString("jdbc.user");
		jdbcPassword = resourceBundle.getString("jdbc.password");
		createTable = Boolean.valueOf(resourceBundle.getString("createTable"));
		classNames = Arrays.asList(resourceBundle.getString("classNames").split(";"));
	}
}
